package cn.gxufe.reliable.message.admin.service;

import cn.gxufe.reliable.message.admin.domain.RMessage;
import cn.gxufe.reliable.message.common.Message;
import cn.gxufe.reliable.message.common.ResultVo;
import com.baomidou.mybatisplus.service.IService;

/**
 * @author yingjie.rong
 **/
public interface ReliableMessageService  extends IService<RMessage> {
    /**
     * prepare
     * @param message
     * @param sourceService
     * @return
     */
    ResultVo prepare(Message message, String sourceService);
    /**
     * finish
     * @param message
     * @return
     */
     ResultVo finish( Message message ,String sourceService);

    /**
     * cancel
     * @param message
     * @return
     */
    ResultVo cancel(Message message,String sourceService);
}
